/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BasicOperations;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author N V Reddy
 */
@WebService(serviceName = "ArithemeticOperations")
public class ArithemeticOperations {

    /** This is a sample web service operation */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt;
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "Add")
    public String Add(@WebParam(name = "Value1") int Value1, @WebParam(name = "Value2") int Value2) {
        //TODO write your implementation code here:
        return (Value1+Value2)+"";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "Sub")
    public String Sub(@WebParam(name = "Value1") int Value1, @WebParam(name = "Value2") int Value2) {
        //TODO write your implementation code here:
        return (Value1-Value2)+"";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "Mul")
    public String Mul(@WebParam(name = "Value1") int Value1, @WebParam(name = "Value2") int Value2) {
        //TODO write your implementation code here:
        return (Value1*Value2)+"";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "Div")
    public String Div(@WebParam(name = "Value1") int Value1, @WebParam(name = "Value2") int Value2) {
        //TODO write your implementation code here:
        return (Value1/Value2)+"";
    }
}
